package com.liuziha.cloudLzhConsumer.controller;

import com.liuziha.cloudLzhConsumer.service.PaymentService;
import com.liuzihao.cloudLzhPayment.pojo.CommentResult;
import com.liuzihao.cloudLzhPayment.pojo.Payment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2022-01-09 19:47
 * @Modified By:
 */
@RestController
public class ConsumerController {
    @Resource
    PaymentService paymentService;
    @GetMapping("/consumer/payment/getPaymentById/{id}")
    CommentResult<Payment> getPaymentById(@PathVariable("id") Long id){
        return paymentService.getPaymentById(id);
    }
}
